.include "Makefile.inc"

SUBDIR=		dtaudit		\
		dtmalloc	\
		dtnfscl		\
		dtrace		\
		dtraceall	\
		dtrace_test	\
		fbt		\
		profile		\
		prototype	\
		systrace

.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
SUBDIR+=	fasttrap systrace_linux
.endif
.if ${MACHINE_CPUARCH} == "amd64"
SUBDIR+=	systrace_linux32
SUBDIR+=	kinst
.endif
.if ${MACHINE_CPUARCH} == "riscv" || ${MACHINE_CPUARCH} == "aarch64"
SUBDIR+=	kinst
.endif
.if ${MACHINE_CPUARCH} == "powerpc"
SUBDIR+=	fasttrap
.endif
.if ${MACHINE_CPUARCH} == "amd64" || \
    ${MACHINE_CPUARCH} == "aarch64" || \
    ${MACHINE_ARCH} == "powerpc64"
.if !empty(COMPAT_FREEBSD32_ENABLED)
SUBDIR+=	systrace_freebsd32
.endif
.endif
.if ${MACHINE_CPUARCH} != "powerpc" || ${MACHINE_ARCH} == "powerpc64"
SUBDIR+=	sdt
.endif

.include <bsd.subdir.mk>
